package Year22_Month05.day30;

public class TestLambda {
    public static void main(String[] args) {
        NoReturnNoParam nnr1 = () -> System.out.println("hello world");
        nnr1.test();

        NoReturnNoParam nnr2 = () -> {
            System.out.println("hello");
            System.out.println("world");
            System.out.println("!!!");
        };
        nnr2.test();

        MyPredict<Employee> mp1 = (e) -> e.getSalary() >= 6000;
        MyPredict<Employee> mp2 = e -> e.getAge() >= 35;
    }
}
